chore: new release candidate (next) #2592
Open
+292
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
next
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onnext
.Releases
@digdir/[email protected]
Major Changes
Search: New compound API (#2708)
Radio + Checkbox: (#2607)
label
prop instead ofchildren
as label textRadio.Group
andCheckbox.Group
and useFieldset
insteadMinor Changes
Patch Changes
Accordion: Fix chevron abandoning parent in scroll container (#2699)
SkipLink: Add css variables (#2626)
ValidationMessage: Add icon when
error={true}
(#2596)ValidationMessage: fix icon abandoning the component when scrolling (#2646)
Accordion: Add css variable for chevron (#2626)
CSS: base sizing on font-size so all components can have all sizes, and naturally inherits size from context (#2541)
CSS: Move default background-color to
<body>
element (#2754)Dropdown: Add
Dropdown.Button
for more explicit API (#2694)Breadcrumbs: Add css variable for chevron (#2626)
Input: Sufficient color contrast for readonly (#2621)
Alert: fix icon abandoning the component when scrolling (#2648)
chip: Fix wrong font sizes (#2595)
Button: Fix SVG and images shrinking in flex containers (#2612)
Fieldset: Move to compound components
Fieldset.Legend
andFieldset.Description
(#2705)Table: add
z-index
to stickhy header (#2761)Tooltip: Add more variables (#2626)
Button: Use font-weight
--ds-font-weight-medium
(#2618)Field: Adds
<Field>
component wrapping and connecting internal form elements for better accessibility (#2502)Chip: Use correct
32px
height to align nicely with<Tag>
(#2683)Combobox: fix overflow on screens narrower than ~340px (#2570)
Label: Fix icon abandoning parent in scroll container (#2699)
Label: Use data attributes for styling (#2588)
ValidationMessage: Use data attributes for styling
Select + Textarea: (#2571)
label
,hideLabel
,description
,characterLimit
anderror
as these will be part ofField
APIPagination: Add css variable for chevron (#2626)
Field.Affix: (#2793)
Field.AffixWrapper
toField.Affixes
size
attributeRemove
baseline
layer and fix layerorder for typography (#2588)Modal backdrop was invisible in some browser versions. See https://caniuse.com/mdn-css_selectors_backdrop_inherit_from_originating_element for affected versions. (#2615)
Table: Add
Table.Foot
and style caption (#2744)@digdir/[email protected]
Major Changes
Search: New compound API (#2708)
Dropdown: Add
Dropdown.Button
for more explicit API (#2694)Switch: Use
label
prop instead ofchildren
to render label (#2773)Fieldset: Move to compound components
Fieldset.Legend
andFieldset.Description
(#2705)Input+Select: Use native HTML
size
prop instead ofhtmlSize
(#2697)Radio + Checkbox: (#2607)
label
prop instead ofchildren
as label textRadio.Group
andCheckbox.Group
and useFieldset
insteadPatch Changes
Dropdown: Rename
DropdownContext
toDropdownTriggerContext
(#2782)Textfield: Removed
htmlSize
, you can now use nativesize
(#2710)CSS: base sizing on font-size so all components can have all sizes, and naturally inherits size from context (#2541)
Popover+Dropdown: Fix issue when combining controlled state with changing child elements (#2707)
Modal: Rename
ModalContext
toModalTriggerContext
(#2782)Input: Sufficient color contrast for readonly (#2621)
Popover: Make sure arrow does not leave the popover (#2652)
Modal: Fix
onClose
not being called (#2622)Textfield: Refactored
characterLimit
tocounter
and now use newField.Counter
sub-component (#2710)useRadioGroup: Add hook to easily control groups of
<Radio>
components (#2739)useCheckboxGroup: Add hook to easily control groups of
<Checkbox>
components (#2739)Modal: Expose native close event object to onClose callback (#2738)
Textfield: Now works as expected with
data-size
(#2710)Field: Adds
<Field>
component wrapping and connecting internal form elements for better accessibility (#2502)Textfield: Added
multiline
for switching betweeninput
andtextarea
(#2710)Tooltip: Be able to send
string
as children (#2777)Textfield: Removed
hideLabel
, usearia-label
oraria-describedby
for "hidden" labels (#2710)Avatar: Fix
aria-hidden
being wrongly added to a fragment (#2626)Chip: Use correct
32px
height to align nicely with<Tag>
(#2683)Label: Use data attributes for styling (#2588)
ValidationMessage: Use data attributes for styling
Select + Textarea: (#2571)
label
,hideLabel
,description
,characterLimit
anderror
as these will be part ofField
APIField.Affix: (#2793)
Field.AffixWrapper
toField.Affixes
size
attributeTable: Add
Table.Foot
and style caption (#2744)Popover: Rename
PopoverContext
toPopoverTriggerContext
(#2782)Spinner:
aria-label
required instead oftitle
prop (#2682)Textfield: Update to use
Field
internally (#2710)@digdir/[email protected]
Minor Changes
CSS variables:
--ds-color-*-{1,2,...,13,contrast-1,contrast-2}
, which were generated from theprimitives
layer of design tokens, have been removed since they are always 1-to-1 with the semantic layer. Use the equivalent variables from the semantic layer instead (#2641)Example, for the
neutral
scale:...and similarly for
accent
,brand1
,brand2
andbrand3
.CLI now supports creating themes with 1 or more "main" colors, a neutral color, and 1 or more "support" colors. The "main" and "support" colors can have arbitrary names. There can not be more than 4 colors of each category unless you're using Figma on the Enterprise plan, due to plan-based restrictions on the number of variable modes per collection. (#2733)
Implemented a more flexible system of semantic border-radius tokens. (#2497)
Patch Changes
Removed
init
command. Usetokens create
instead. (#2616)Update global colors (#2662)
@digdir/[email protected]
Minor Changes
CSS variables:
--ds-color-*-{1,2,...,13,contrast-1,contrast-2}
, which were generated from theprimitives
layer of design tokens, have been removed since they are always 1-to-1 with the semantic layer. Use the equivalent variables from the semantic layer instead (#2641)Example, for the
neutral
scale:...and similarly for
accent
,brand1
,brand2
andbrand3
.Implemented a more flexible system of semantic border-radius tokens. (#2497)
Patch Changes
tokens: Removed validationmessage and label typography styles (#2698)
Update global colors (#2662)